import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  //获取项目列表
  getProjectList: {
    url: '/api/v1/project/project_list',
    method: 'get'
  },
  //爬架检测列表
  getClimbMonitorList: {
    url: '/api/v1/project/climb',
    method: 'get'
  },
  //爬架机位下拉
  getCameraList: {
    url: '/api/v1/project/climb_machine',
    method: 'get'
  },
  //环境监测列表
  getEnvironmentList: {
    url: '/api/v1/project/environment',
    method: 'get'
  },
  //劳务班组人员列表
  getServiceGroupList: {
    url: '/api/v1/project/labor_team_user',
    method: 'get'
  },
  //劳务班组下拉
  getGroupList: {
    url: '/api/v1/project/labor_team',
    method: 'get'
  },
  //行为监测列表
  getBehaviorList: {
    url: '/api/v1/project/behavior',
    method: 'get'
  },
  //摄像点位
  getPonitList: {
    url: '/api/v1/project/behavior_camera',
    method: 'get'
  },
  //施工段管理--列表
  getConstructionList: {
    url: '/api/v1/project/construction_list',
    method: 'get'
  },
  //施工段管理--wbs列表
  getConstructionTree: {
    url: '/api/v1/project/wbs_list',
    method: 'get'
  },
  // 施工段管理--添加施工段
  createConstruction: {
    url: '/api/v1/project/create_construction',
    method: 'post'
  },
  //施工段管理--修改施工段
  updateConstruction: {
    url: '/api/v1/project/update_construction',
    method: 'put'
  },
  //施工段管理--删除施工段
  deleteConstruction: {
    url: '/api/v1/project/delete_construction',
    method: 'delete'
  }

}

export default buildService(settings)
